<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

/**
 * Class TcAuther
 * @property AdminUser $user
 * @property TcSale $sale_list
 * @package App\Models\Admin
 */
class TcAuther extends Model
{
    protected $table='tencent_auther';
    const CREATED_AT = null;
    const UPDATED_AT = null;

    public function user(){
        return $this->hasOne(AdminUser::class, "id", "admin_id");
    }

    public function sale_list(){
        return $this->hasMany(TcSale::class, "relate_id", "id");
    }
}
